package com.uy.cuantoconocesdeuruguay.utiles;

import android.content.Context;
import android.content.SharedPreferences;

public class SharedPreferencesUtils {
	public static final String APPLICATION_LANGUAGE = "APPLICATION_LANGUAGE";

	public static SharedPreferences getSharedPreferences(Context context, Class c) {
	    return context.getSharedPreferences(c.getSimpleName(), Context.MODE_PRIVATE);
	}
	public static void storePreference(Context context, String key, String value, SharedPreferences prefs) {
	    SharedPreferences.Editor editor = prefs.edit();
	    editor.putString(key, value);
	    editor.commit();
	}
}
